﻿/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


/* Tabs */
tabs {
  height: 21px;
  padding: 2px 2px 0 0; /* Tab will be pushed down one pixel, hence only 1 pixel at the top */
}

tab {
  display:block;
  float:left;
  height: 15px;
  line-height: 15px;
  padding: 2px 6px 3px;
  border: 0 transparent solid;
  border-width: 1px 1px 0;
  position: relative;
  top: 1px; /* Push down one pixel to hide the border */
}

tabs tab {
  border-radius: 3px 3px 0 0;
  margin-right: 1px;
}

tabs tab.active {
  background: #fefefe;
  border-color: #999;
  box-shadow: 0 0 3px #ccc;
}

tabs tab:not(.active):hover {
  background-color: #eee;
  border-color: #ccc;
  padding-bottom: 2px;
}

tabs tab:not(.active) {
    color: #666;
}

top-tabs {
  top: 0;
  left: 0;
  height: 30px;
  background-color: #e6e6e6;
  background-image: -o-linear-gradient(270deg,
                                       rgba(255, 255, 255, 0.75) 0px,
                                       rgba(255, 255, 255, 0.25) 50%,
                                       rgba(0, 0, 0, 0.05) 50%,
                                       rgba(0, 0, 0, 0.05) 52%,
                                       transparent 52%,
                                       rgba(255, 255, 255, 0.25) 100%);
}

/* this is a quick hack to get the runtime button in the tabs bar */
top-tabs toolbar-buttons {
  margin: -7px 3px 0 -2px;
}

top-tabs tab {  /**/
  height: 30px;
  line-height: 30px;
  border: 0;
  border-right: 1px solid rgba(0,0,0,0.2);
  padding: 0 6px;
  text-shadow: 0 1px rgba(255, 255, 255, .5);
  top: 0;
  background-color: #e6e6e6;
  background-image: -o-linear-gradient(270deg,
                                       rgba(255, 255, 255, 0.75) 0px,
                                       rgba(255, 255, 255, 0.25) 50%,
                                       rgba(0, 0, 0, 0.05) 50%,
                                       rgba(0, 0, 0, 0.05) 52%,
                                       transparent 52%,
                                       rgba(255, 255, 255, 0.25) 100%);
}

top-tabs tab.active {
  background-color: #cecece;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}

top-tabs tab.active:first-of-type {
  border-left-color: transparent;
}

/* Alert state - Warning & Error */
top-tabs tab.alert {
  text-shadow: 0 1px rgba(255, 255, 255, .3);
  background-color: #f6ae66;
  color: #662914;
}

top-tabs tab.alert.active {
  background-color: #f2883d;
  box-shadow: inset 0 1px 4px rgba(128,0,0,0.3),
              inset 0 1px 2px rgba(128,0,0,0.4),
              -1px 0 rgba(0,0,0,0.3);
}

/* Alert state - Information */
top-tabs tab[data-state="waiting"] {
  background-color: #aadaf2;
  color: #263f5d;
}

top-tabs tab[data-state="waiting"].active {
  background-color: #8ac7e5;
  box-shadow: inset 0 1px 4px
              rgba(0,64,128,0.3),
              inset 0 1px 2px rgba(0,64,128,0.4),
              -1px 0 rgba(0,0,0,0.3);
}

top-tabs .icon {
  display: inline-block;
  height: 30px;
  width: 32px;
  vertical-align: top;
  margin-right: 3px;
}
top-tabs .badge {
  position: absolute;
  background: #df6531;
  color: #000;
  text-shadow: none;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 4px;
  top: 1px;
  right: 1px;
  font-size: 9px;
}
top-tabs .badge:empty {
  display: none;
}

